import http from "../utils/request";

//获取漫展列表
export function getParties(data) {
    return http({
        url:'/party/getPartiesForBack',
        method:'post',
        data
    })
}

//根据条件获取漫展列表
export function queryByStateAndTitle(data) {
    return http({
        url:'/party/queryByStateAndTitle',
        method:'post',
        data
    })
}

//获取对应漫展的详情
export function getPartyContent(id) {
    // 这里就应该是真实的后端请求地址
    return http({
        url:'/party/getPartyContent',
        method:'get',
        params:{
            "id":id
        }
    })
}


//添加漫展活动
export function addParty(data) {
    return http({
        url:'/party/addPartyShow',
        method:'post',
        data
    })
}